home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / DIAG / INTR26B.ARJ / INT2GUID.TAB < prev    next >
Text File  |  1991-05-12  |  12KB  |  294 lines

  1. ;Text for INT2GUID conversion program, topic 21.
  2. ;INT2GUID converts INTERRUP.LST files to input for GUIDE.
  3. ;
  4. ;This file contains tables extracted from the INTERRUP.LST file. Tabs in
  5. ;the extracted text were filtered to 1 - 8 spaces.
  6. ;
  7. ;This file includes 4 extra topics. Reserve additionally 6 topics, or a
  8. ;total of 10.
  9. ;
  10. ;Topic headings are also included in the GUIDE main index, in alphabetic
  11. ;order after other topics. They are excluded from the index if the leading
  12. ;semicolon (;) is removed from the lines ";!NOINDEX".
  13. ;
  14. PSP Format, Environment Block, Country Specific Information, Error List
  15.  
  16. This entry gives access to tables extracted from the INTERRUP.LST file.
  17.  
  18.   22PSP          Program Segment Prefix Format
  19.   23Environment  Block Format
  20.   24Country      Specific Information
  21.   25Errors       Returned by DOS Funtion Calls
  22. ;
  23. !TOPIC 22 PSP Format
  24. ;!NOINDEX
  25. ;
  26. ----------2126-------------------------------
  27. INT 21 - DOS 1+ - CREATE NEW PROGRAM SEGMENT PREFIX
  28.         AH = 26h
  29.         DX = segment at which to create PSP (see below for format)
  30. Notes:  new PSP is updated with memory size information; INTs 22h, 23h, 24h
  31.           taken from interrupt vector table
  32.         (DOS 2+) DOS assumes that the caller's CS is the segment of the PSP to
  33.           copy
  34. SeeAlso: AH=4Bh,AH=50h,AH=51h,AH=55h,AH=62h,AH=67h
  35.  
  36. Format of PSP:
  37. Offset  Size    Description
  38.  00h  2 BYTEs   INT 20 instruction for CP/M CALL 0 program termination
  39.  02h    WORD    segment of first byte beyond memory allocated to program
  40.  04h    BYTE    unused filler
  41.  05h    BYTE    CP/M CALL 5 service request (FAR JMP to 000C0h)
  42.                 BUG: (DOS 2+) PSPs created by INT 21/AH=4Bh point at 000BEh
  43.  06h    WORD    CP/M compatibility--size of first segment for .COM files
  44.  08h  2 BYTEs   remainder of FAR JMP at 05h
  45.  0Ah    DWORD   stored INT 22 termination address
  46.  0Eh    DWORD   stored INT 23 control-Break handler address
  47.  12h    DWORD   stored INT 24 critical error handler address
  48.  16h    WORD    segment of parent PSP
  49.  18h 20 BYTEs   DOS 2+ Job File Table, one byte per file handle, FFh = closed
  50.  2Ch    WORD    DOS 2+ segment of environment for process
  51.  2Eh    DWORD   DOS 2+ process's SS:SP on entry to last INT 21 call
  52.  32h    WORD    DOS 3+ number of entries in JFT (default 20)
  53.  34h    DWORD   DOS 3+ pointer to JFT (default PSP:0018h)
  54.  38h    DWORD   DOS 3+ pointer to previous PSP (default FFFFFFFFh in 3.x)
  55.                 used by SHARE in DOS 3.3
  56.  3Ch  4 BYTEs   unused by DOS versions <= 4.01
  57.  40h  2 BYTEs   DOS 5beta version to return on INT 21/AH=30h
  58.  42h 14 BYTEs   unused by DOS versions <= 4.01
  59.  50h  3 BYTEs   DOS 2+ service request (INT 20/RETF instructions)
  60.  53h  9 BYTEs   unused in DOS versions <= 4.01
  61.  5Ch 16 BYTEs   first default FCB, filled in from first commandline argument
  62.                 overwrites second FCB if opened
  63.  6Ch 16 BYTEs   second default FCB, filled in from second commandline argument
  64.                 overwrites beginning of commandline if opened
  65.  7Ch  4 BYTEs   unused
  66.  80h 128 BYTEs  commandline / default DTA
  67.                 command tail is BYTE for length of tail, N BYTEs for the tail,
  68.                 followed by a BYTE containing 0Dh
  69. Notes:  in DOS versions 3.0 and up, the limit on simultaneously open files may
  70.           be increased by allocating memory for a new open file table, filling
  71.           it with FFh, copying the first 20 bytes from the default table, and
  72.           adjusting the pointer and count at 34h and 32h.  However, DOS
  73.           versions through  at least 3.30 will only copy the first 20 file
  74.           handles into a child PSP (including the one created on EXEC).
  75.         network redirectors based on the original MS-Net implementation use
  76.           values of 80h-FEh in the open file table to indicate remote files
  77. ;
  78. !TOPIC 23 Environment
  79. ;!NOINDEX
  80. ;
  81. Format of environment block:
  82. Offset  Size    Description
  83.  00h  N BYTEs   first environment variable, ASCIZ string of form "var=value"
  84.       N BYTEs   second environment variable, ASCIZ string
  85.         ...
  86.       N BYTEs   last environment variable, ASCIZ string of form "var=value"
  87.         BYTE    00h
  88. ---DOS 3+---
  89.         WORD    number of strings following environment (normally 1)
  90.       N BYTEs   ASCIZ full pathname of program owning this environment
  91.                   (canonicalized result of AH=60h)
  92.                 other strings may follow
  93. ;
  94. !TOPIC 24 Country Info
  95. ;!NOINDEX
  96. ;
  97. ----------2138-------------------------------
  98. INT 21 - DOS 2+ - GET COUNTRY-SPECIFIC INFORMATION
  99.         AH = 38h
  100. --DOS 2.x--
  101.         AL = 00h get current-country info
  102.         DS:DX -> buffer for returned info (see below)
  103. Return: CF set on error
  104.             AX = error code (02h)
  105.         CF clear if successful
  106.             AX = country code (MSDOS 2.11 only)
  107.             buffer at DS:DX filled
  108. --DOS 3+--
  109.         AL = 00h for current country
  110.         AL = 01h thru 0FEh for specific country with code <255
  111.         AL = 0FFh for specific country with code >= 255
  112.            BX = 16-bit country code
  113.         DS:DX -> buffer for returned info (see below)
  114. Return: CF set on error
  115.             AX = error code (02h)
  116.         CF clear if successful
  117.             BX = country code
  118.             DS:DX buffer filled
  119. SeeAlso: AH=65h,INT 2F/AX=110Ch,INT 2F/AX=1404h
  120.  
  121. Format of DOS 2.x country info:
  122. Offset  Size    Description
  123.  00h    WORD    date format  0 = USA    mm dd yy
  124.                              1 = Europe dd mm yy
  125.                              2 = Japan  yy mm dd
  126.  02h    BYTE    currency symbol
  127.  03h    BYTE    00h
  128.  04h    BYTE    thousands separator char
  129.  05h    BYTE    00h
  130.  06h    BYTE    decimal separator char
  131.  07h    BYTE    00h
  132.  08h 24 BYTEs   reserved
  133.  
  134. Format of DOS 3+ country info:
  135. Offset  Size    Description
  136.  00h    WORD    date format (see above)
  137.  02h  5 BYTEs   ASCIZ currency symbol string
  138.  07h    BYTE    thousands separator char
  139.  08h    BYTE    00h
  140.  09h    BYTE    decimal separator char
  141.  0Ah    BYTE    00h
  142.  0Bh    BYTE    date separator char
  143.  0Ch    BYTE    00h
  144.  0Dh    BYTE    time separator char
  145.  0Eh    BYTE    00h
  146.  0Fh    BYTE    currency format
  147.                 bit 2 = set if currency symbol replaces decimal point
  148.                 bit 1 = number of spaces between value and currency symbol
  149.                 bit 0 = 0 if currency symbol precedes value
  150.                         1 if currency symbol follows value
  151.  10h    BYTE    number of digits after decimal in currency
  152.  11h    BYTE    time format
  153.                 bit 0 = 0 if 12-hour clock
  154.                         1 if 24-hour clock
  155.  12h    DWORD   address of case map routine
  156.                 (FAR CALL, AL = char to map to upper case [>= 80h])
  157.  16h    BYTE    data-list separator char
  158.  17h    BYTE    00h
  159.  18h 10 BYTEs   reserved
  160. ;
  161. !TOPIC 25 Error Codes
  162. ;!NOINDEX
  163. ;
  164. ----------2159-------------------------------
  165. INT 21 - DOS 3+ - GET EXTENDED ERROR INFORMATION
  166.         AH = 59h
  167.         BX = 0000h
  168. Return: AX = extended error code (see below)
  169.         BH = error class (see below)
  170.         BL = recommended action
  171.         CH = error locus
  172.         CL, DX, SI, DI, BP, DS, and ES destroyed
  173. Notes:  functions available under DOS 2.x map the true DOS 3+ error code into
  174.           one supported under DOS 2.x
  175.         you should call this function to retrieve the true error code when an
  176.           FCB or DOS 2.x call returns an error
  177. SeeAlso: AX=5D0Ah,INT 2F/AX=122Dh
  178.  
  179. Values for extended error code:
  180.         00h no error
  181.         01h function number invalid
  182.         02h file not found
  183.         03h path not found
  184.         04h too many open files (no handles available)
  185.         05h access denied
  186.         06h invalid handle
  187.         07h memory control block destroyed
  188.         08h insufficient memory
  189.         09h memory block address invalid
  190.         0Ah environment invalid (usually >32K in length)
  191.         0Bh format invalid
  192.         0Ch access code invalid
  193.         0Dh data invalid
  194.         0Eh reserved
  195.         0Fh invalid drive
  196.         10h attempted to remove current directory
  197.         11h not same device
  198.         12h no more files
  199. ---DOS 3+---
  200.         13h disk write-protected
  201.         14h unknown unit
  202.         15h drive not ready
  203.         16h unknown command
  204.         17h data error (CRC)
  205.         18h bad request structure length
  206.         19h seek error
  207.         1Ah unknown media type (non-DOS disk)
  208.         1Bh sector not found
  209.         1Ch printer out of paper
  210.         1Dh write fault
  211.         1Eh read fault
  212.         1Fh general failure
  213.         20h sharing violation
  214.         21h lock violation
  215.         22h disk change invalid
  216.             ES:DI -> ASCIZ volume label of required disk
  217.         23h FCB unavailable
  218.         24h sharing buffer overflow
  219.         25h reserved
  220.         26h (DOS 4+) cannot complete file operation
  221.         27h-31h reserved
  222.         32h network request not supported
  223.         33h remote computer not listening
  224.         34h duplicate name on network
  225.         35h network name not found
  226.         36h network busy
  227.         37h network device no longer exists
  228.         38h network BIOS command limit exceeded
  229.         39h network adapter hardware error
  230.         3Ah incorrect response from network
  231.         3Bh unexpected network error
  232.         3Ch incompatible remote adapter
  233.         3Dh print queue full
  234.         3Eh queue not full
  235.         3Fh not enough space to print file
  236.         40h network name was deleted
  237.         41h network: Access denied
  238.         42h network device type incorrect
  239.         43h network name not found
  240.         44h network name limit exceeded
  241.         45h network BIOS session limit exceeded
  242.         46h temporarily paused
  243.         47h network request not accepted
  244.         48h network print/disk redirection paused
  245.         49h (LANtastic) invalid network version
  246.         4Ah (LANtastic) account expired
  247.         4Bh (LANtastic) password expired
  248.         4Ch (LANtastic) login attempt invalid at this time
  249.         4Dh (LANtastic v3+) disk limit exceeded on network node
  250.         4Eh (LANtastic v3+) not logged in to network node
  251.         4Fh reserved
  252.         50h file exists
  253.         51h reserved
  254.         52h cannot make directory
  255.         53h fail on INT 24h
  256.         54h (DOS 3.3+) too many redirections
  257.         55h (DOS 3.3+) duplicate redirection
  258.         56h (DOS 3.3+) invalid password
  259.         57h (DOS 3.3+) invalid parameter
  260.         58h (DOS 3.3+) network write fault
  261.         59h (DOS 4+) function not supported on network
  262.         5Ah (DOS 4+) required system component not installed
  263.  
  264. Values for Error Class:
  265.         01h out of resource (storage space or I/O channels)
  266.         02h temporary situation (file or record lock)
  267.         03h authorization (denied access)
  268.         04h internal (system software bug)
  269.         05h hardware failure
  270.         06h system failure (configuration file missing or incorrect)
  271.         07h application program error
  272.         08h not found
  273.         09h bad format
  274.         0Ah locked
  275.         0Bh media error
  276.         0Ch already exists
  277.         0Dh unknown
  278.  
  279. Values for Suggested Action:
  280.         01h retry
  281.         02h delayed retry
  282.         03h prompt user to reenter input
  283.         04h abort after cleanup
  284.         05h immediate abort
  285.         06h ignore
  286.         07h retry after user intervention
  287.  
  288. Values for Error Locus:
  289.         01h unknown or not appropriate
  290.         02h block device (disk error)
  291.         03h network related
  292.         04h serial device (timeout)
  293.         05h memory related
  294.